Restore Buffer-menu-use-header-line functionality.
authorChong Yidong <cyd@gnu.org>
Mon, 7 May 2012 05:37:38 +0000 (13:37 +0800)
committerChong Yidong <cyd@gnu.org>
Mon, 7 May 2012 05:37:38 +0000 (13:37 +0800)
commit2cffb27083ebcdbbcd5cc417232bc44b3310767a
tree78167663182b40f0539d4b9a48007c240c7d15bf
parentf3dd090484845a382cf98e05658ffcaeebc712e6
Restore Buffer-menu-use-header-line functionality.

* lisp/emacs-lisp/tabulated-list.el: Add no-header-line alternative.
(tabulated-list-use-header-line): New var.
(tabulated-list-init-header): Use it.
(tabulated-list-print-fake-header): New function.
(tabulated-list-print): Use it.
(tabulated-list-sort-button-map): Add non-header-line commands.
(tabulated-list-init-header): Add column name property to basic
labels as well.
(tabulated-list-col-sort): Handle non-header-line button case.
(tabulated-list--sort-by-column-name): Fix a corner case.

* lisp/buff-menu.el (list-buffers--refresh): Handle
Buffer-menu-use-header-line.
lisp/ChangeLog
lisp/buff-menu.el
lisp/emacs-lisp/tabulated-list.el